package com.naughty.userlogin02.dao;

import com.naughty.userlogin02.bean.Stu;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;

@Repository
public interface StuDao {

    public List<Stu> getAllStu(@Param("username") String username, @Param("pageStart") int pageStart, @Param("pageSize") int pageSize);
    public int getStuCounts(@Param("username") String username);
    public int updateState(Integer id, Boolean state);
    public int addStu(Stu stu);
    public Stu getUpdateStu(int id);
    public int editStu(Stu stu);
    public int deleteStu(int id);
}
